#ifndef SRC_IO_H
#define SRC_IO_H

#include "../base/base.h"

void io_init(void);
void io_exit(void);

const static int PLAYER_UP      = 1 << 0;
const static int PLAYER_DOWN    = 1 << 1;
const static int PLAYER_LEFT    = 1 << 2;
const static int PLAYER_RIGHT   = 1 << 3;
const static int PLAYER_A       = 1 << 4;
const static int PLAYER_B       = 1 << 5;
const static int PLAYER_START   = 1 << 6;

void io_player_read_actions(void);
int io_player_get_actions(int player);
int io_player_get_buttons_menu(void);

void io_load_ressources(void);

#endif
